import {getStatusBarHeight} from "../../utils/tools"
const computedBehavior = require('miniprogram-computed')
Page({
  behaviors: [computedBehavior],
  /**
   * 页面的初始数据
   */
  data: {
    custom_config:{
      "bg_color": "#fff",
      "color": "#000",
      "flag": 1,
      "name": "我是标题独一无二天下无敌我是标题独一无二天下无敌"
    },
    custom_common:{
      titleHeight:'88',
      titleMargin:'40'
    },
    images: [{
        id: "0",
        url: "../../assets/images/2.jpg"
      },{
        id: "1",
        url: "../../assets/images/2.jpg"
      },{
        id: "2",
        url: "../../assets/images/2.jpg"
      },
    ],
    nav_item_tag_images: [
      {
        id: "0",
        text:"海马体",
        url: "../../assets/images/2.jpg"
      },{
        id: "1",
        text:"海马体大师",
        url: "../../assets/images/2.jpg"
      },{
        id: "2",
        text:"海马体儿童",
        url: "../../assets/images/2.jpg"
      },{
        id: "3",
        text:"满图摄影",
        url: "../../assets/images/2.jpg"
      },{
        id: "4",
        text:"企业服务",
        url: "../../assets/images/2.jpg"
      },
      {
        id: "5",
        text:"礼品卡",
        url: "../../assets/images/2.jpg"
      },{
        id: "6",
        text:"海马体商城",
        url: "../../assets/images/2.jpg"
      },{
        id: "8",
        text:"莱斯学院",
        url: "../../assets/images/2.jpg"
      },{
        id: "9",
        text:"修修兽",
        url: "../../assets/images/2.jpg"
      },
    ],
    introduce_images1:[
    {
      url:"/assets/images/2.jpg",
      id:"0"
    },
    {
      url:"/assets/images/2.jpg",
      id:"1"
    },
    {
      url:"/assets/images/2.jpg",
      id:"2"
    },
    {
      url:"/assets/images/2.jpg",
      id:"3"
    }
    ],
    introduce_images2:[
      {
        url:"/assets/images/2.jpg",
        id:"0"
      },
      {
        url:"/assets/images/2.jpg",
        id:"1"
      },
      {
        url:"/assets/images/2.jpg",
        id:"2"
      },
    ],
    introduce_images3:[
      {
        url:"/assets/images/2.jpg",
        text:"精致证件照",
        id:"0"
      },
      {
        url:"/assets/images/2.jpg",
        text:"入学照",
        id:"1"
      },
      {
        url:"/assets/images/2.jpg",
        text:"职业形象照",
        id:"2"
      },
      {
        url:"/assets/images/2.jpg",
        text:"精致证据照",
        id:"3"
      },
      {
        url:"/assets/images/2.jpg",
        text:"结婚登记照/光阴有你",
        id:"4"
      },
    ],
    introduce_images4:[
      {
        url:"/assets/images/2.jpg",
        text:"文艺照",
        id:"0"
      },
      {
        url:"/assets/images/2.jpg",
        text:"生日照",
        id:"1"
      },
      {
        url:"/assets/images/2.jpg",
        text:"亲子照",
        id:"2"
      },
      {
        url:"/assets/images/2.jpg",
        text:"全家福",
        id:"3"
      },
      {
        url:"/assets/images/2.jpg",
        text:"小新云",
        id:"4"
      },
      {
        url:"/assets/images/2.jpg",
        text:"宠物照",
        id:"5"
      },
      {
        url:"/assets/images/2.jpg",
        text:"人宠合照",
        id:"6"
      },
    ],
    introduce_images5:[
      {
        url:"/assets/images/2.jpg",
        text:"文艺照",
        id:"0"
      },
      {
        url:"/assets/images/2.jpg",
        text:"生日照",
        id:"1"
      },
      {
        url:"/assets/images/2.jpg",
        text:"亲子照",
        id:"2"
      },
    ]
  },
  computed: {
    top_bar_margin(data) {
      return data.custom_common.titleMargin + 88
    },
  },
  page_to(e) {
    console.log("跳转页面："+e.detail)
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    getStatusBarHeight().then((res)=>{
      this.setData({
        "custom_common.titleMargin":res*2
      })
    })
  },

})